package com.linkey.common.custom;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;

/**
 * 返回值实体类
 * @author zhangyb
 * @date 2019年11月7日
 */
@Data
@ApiModel(value = "返回值")
@RequiredArgsConstructor
@AllArgsConstructor
public class JsonResult<T> implements Serializable {

    /**
     *标识.
     */
    @ApiModelProperty(value = "标识")
    private boolean flag;
    /**
     *标识.
     */
    @ApiModelProperty(value = "状态码")
    private int status;
    /**
     *提示信息.
     */
    @ApiModelProperty(value = "提示信息")
    private String message;
    /**
     *具体内容.
     */
    @ApiModelProperty(value = "内容")
    private T data;

}
